<?php 
	require_once('connexion.php'); 
	?>

<?php
 $q=$_GET["q"];
 
	$query_devis3 = $pdo->prepare("select * FROM devis_pri WHERE devis_id='$q'");
	$query_devis3->execute();
	$data_devis3 = $query_devis3-> fetchall();	

	
	
  ?>
 
	<?php			  
					foreach($data_devis3 as $row3 )
					{
					
	?>

 <form action="" method="post" name="form_suppr">
  <p align="center"><strong><u>Supprimer un devis</u></strong></p>
  
   <table width="350" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#eeeeee" class="tableaux">

      <tr>	
		<tr>
		<td width="50">devis Id (id) <?php echo $q ; ?></td>
			<td width="50"><input name="devisid" type="text" id="devisid"  value= "<?php echo $row3['devis_id']; ?>" style="color: #FF0000; background-color: #FFFF66;"  ></td>
			
			<td><label for="from">date d emission</label></td>
			<td><input type="text" id="from" name=" from" value= "<?php echo $row3['devis_date_emission']; ?>"  /></td>
			<td> <label for="to">date d echeance</label></td>
			<td><input type="text" id="to" name="to" value= "<?php echo $row3['devis_date_echeance']; ?>" /></td>
		</tr>
		<tr>
			<td>Montant total hors Taxe</td>
			<td><input name="devismnttotalht"  id="devismnttotalht" value= "<?php echo $row3['devis_id']; ?>"  ></td><!--readonly="true" -->
			<td>Montant total TVA</td>
			<td><input name="devismnttotaltva" id="devismnttotaltva" value= "<?php echo $row3['devis_id']; ?>" ></td>
		</tr>
		<tr>
			<td>Flag de validation</td>
			<td><input name="devisvalidflag" type="hidden" id="devisvalidflag" value="false"  ></td>
			</tr>
</tr>
			
			
			
			
            <input name="verif" type="hidden" id="verif">
       </td>
        <td width="157"><input type="submit" name="Submit2" value="Supprimer un devis"></td>
      </tr>
    </table>
	
	</form>
	
 <?php
 }
$query_devis3->closeCursor();
?>
  